import { Module } from '@nestjs/common'
import { LoginService } from './login.service'
import { LoginController } from './login.controller'
import { JwtModule } from '@nestjs/jwt'
import { JwtStrategy } from './strategies/jwt.strategy'

@Module({
    imports: [
        JwtModule.register({
            secret: process.env.SECRET,
            signOptions: {
                expiresIn: '1 days'
            }
        })
    ],
    controllers: [LoginController],
    providers: [LoginService, JwtStrategy]
})
export class LoginModule { }
